//------------------------------------------------------------------------------
// X2TK Graphic Toolkit
// Copyright (C) 2006-2007 Janusz Kowalski
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program.  If not, see <http://www.gnu.org/licenses/>.
//------------------------------------------------------------------------------

#ifndef X2TK_H
#define X2TK_H

#include "x2tk_Widget.h"
#include "fontSDL.h"
#include "x2tk_Graphics.h"

namespace x2tk {

void init();

void done();

enum {
  FRAME_ACTIVE, FRAME_NORMAL, FRAME_DISABLED,
  AREA_CLICKABLE, AREA_NORMAL, AREA_EDITABLE
};

Uint32 getColor(int id);

enum {
  FONT_ACTIVE, FONT_NORMAL, FONT_DISABLED
};

const Font* getFont(int id);

void drawBox(GraphicContext& g, Uint32 bg, Uint32 fg);

void callRepetitively(Widget *w, int id);
void cancelRepetitiveCalls(Widget *w);

void callLater(Widget *w, int id);

void pushEvent(Widget *w, int id);

void doCalls();
void cancelCalls(Widget *w);

}

#endif
